using System;
using System.Diagnostics;
using System.Reflection;
using System.Resources;

namespace LinuxGarminImport.View
{
    class PluginView
    {
        public static string GetLocalizedString(string name)
        {
            try
            {
                return ResourceManager.GetString(name);
            }
            catch
            {
                Debug.Assert(false, "Unable to find string resource named " + name);

                return String.Empty;
            }
        }

        public static ResourceManager ResourceManager
        {
            get { return m_ResourceManager; }
        }

        private static ResourceManager m_ResourceManager = new ResourceManager("LinuxGarminImport.Resources.StringResources",
                                                                               Assembly.GetExecutingAssembly());
    }
}
